class TYPE:
	Action, Attack, Duration, Victory, Treasure, Reaction, Curse, Prize = range(8)

class Card():
        Name = ""
	Type = []
	Description = "(None)"
	Cost = 0   # valid for ALL
	Value = 0  # valid for Treasure
	Points = 0 # valid for Victory and Curse
	def __init__(self):
		self.Player = None
	def buy(self, player):
		self.gain(player)
		player.Coins -= self.Cost # - game.COSTMODIFIER
		player.Buys  -= 1

	def gain(self, player):
		self.Player = player
		self.Player.Gained.append(self)

	def play(self):
		pass
	
	def discard(self):
		pass
	
	def __str__(self):
		return self.Name

	def description(self):
                return self.Description
